package bavaria.hightech.testit.factorypattern.einfachefactory;

public class EinfachePizzaFabrik {
	
	public Pizza erstellePizza(String typ){
		Pizza pizza = null;
		
		if(typ.equals("Salami")){
			pizza = new SalamiPizza();
		}else if(typ.equals("Schinken")){
			pizza = new SchinkenPizza();
		}else if(typ.equals("Thunfisch")){
			pizza = new ThunfischPizza();
		}else if(typ.equals("Krabben")){
			pizza = new KrabbenPizza();
		}
		return pizza;
	}

}
